home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 717 b | 39 lines | [TEXT/CWIE] |
- // Process.h
-
- #ifndef Process_h
- #define Process_h
-
- #ifndef Integers_h
- #include "Integers.h"
- #endif
-
- class Process
- {
- private:
- ProcessSerialNumber psn;
-
- public:
- Process( ProcessSerialNumber thePSN )
- : psn( thePSN )
- {}
-
- enum ApplicationProcess{ application };
- enum FrontProcess{ front };
-
- Process( ApplicationProcess );
- Process( FrontProcess );
-
- static const Process& Application();
- static Process Front() { return Process( front ); }
-
- bool operator==( const Process& ) const;
- bool operator!=( const Process& r ) const { return !(*this == r); }
-
- void Wake() const;
- void MoveToFront() const;
-
- const ProcessSerialNumber& Number() const { return psn; }
- };
-
- #endif
-